import AuthContext from "components/login-context/AuthContextProvider"
import { useContext } from "react"


export default () => {
    const authContext = useContext(AuthContext)

    if(!authContext) {
        throw new Error('使用 useContext 必须在AuthContextProvider内容中')
    }

    return authContext
}

    